package cn.school.student.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @className: TStudentExamPerformance
 * @author: Alex
 * @date: 2023/4/12
 **/
@Data
@TableName("t_exam_publish_student teps  " +
		"left join t_exam_performance tep on tep.publish_id = teps.publish_id AND tep.student_id = teps.student_id " +
		"left join t_student_info tsi on tep.student_id = tsi.id")
public class TStudentExamPerformance {
	/**
	 * 主键
	 */
	@TableField(value = "teps.id")
	private Long publishStudentId;
	/**
	 * 发布表ID
	 */
	@TableField(value = "tep.publish_id")
	private Long publishId;
	
	@TableField(value = "tep.student_id")
	private Long studentId;
	/**
	 * 試卷id
	 */
	@TableField(value = "tep.testpaper_id")
	private Integer testPaperId;
	
	@TableField(value = "teps.is_submit")
	private String isSubmit;
	
	/**
	 * 題目id
	 */
	@TableField(value = "tep.questions_id")
	private Long questionsId;
	
	/**
	 * 学生答题结果
	 */
	@TableField(value = "tep.stu_result")
	private String stuResult;
	/**
	 * 是否正确
	 */
	@TableField(value = "tep.is_right")
	private String isRight;
	
	/**
	 * 学生名称
	 * */
	@TableField(value = "tsi.name")
	private String name;
	/**
	 * 学生手机号码
	 * */
	@TableField(value = "tsi.phone")
	private String phone;
	/**
	 * 班级名称
	 * */
	@TableField(value = "tsi.class_name")
	private String className;
}
